package com.pace.ribbon.day01.di;import org.springframework.format.annotation.DateTimeFormat;import java.util.Date;/** * @Auther: sky * @Date: 2019/3/23 22:30 * @Description: */public class DI {    @DateTimeFormat(pattern="yyyy-MM-dd")    private Date date;    public void foo() {        System.out.println("hellop");    }//    @DateTimeFormat(iso=DateTimeFormat.ISO.DATE_TIME)    public Date getDate() {        return date;    }    public void setDate(Date date) {        this.date = date;    }    public static void main(String[] args) {        DI di = new DI();        di.setDate(new Date());        System.out.println(di.getDate().toString());    }}